<?php
/**
 * 后台文章模型类
 * @author caoge
 * @version 2012-7-20
 */
class ArticleModel extends AdminBaseModel{
	public $_link = array(
			'ActicleType'=>array(
					'mapping_type'=>BELONGS_TO,
					'class_name'=>'ArticleType',
					'mapping_name'=>'type_info',
					'foreign_key'=>'type_id'
			),
			'ArticleTag'=>array(
					'mapping_type'=>MANY_TO_MANY,
					'class_name'=>'ArticleTag',
					'mapping_name'=>'tag',
					'foreign_key'=>'article_id',
					'relation_foreign_key'=>'tag_id',
					'relation_table'=>'blog_article_tag_relationship'
			)
	);
}